<?php

namespace app\request;

use think\Validate;

class Rule extends Validate
{

    protected $scene = [
        'register' => ['mch_id', 'game_id', 'area_id', 'account', 'name', 'level', 'type'],
        'delete' => ['mch_id', 'game_id', 'area_id', 'account', 'name'],
    ];


    protected $rule = [
        'mch_id' => 'require',
        'game_id' => 'require',
        'area_id' => 'require',
        'account' => 'require',
        'name' => 'require',
        'level' => 'require',
        'type' => 'require',
    ];


    protected $message = [
        'mch_id.require' => '商户不能为空',
        'game_id.require' => '游戏不能为空',
        'area_id.require' => '区服不能为空',
        'account.require' => '账号不能为空',
        'name.require' => '名称不能为空',
        'level.require' => '等级不能为空',
        'type.require' => '职业不能为空',
    ];

}